/**
 * 整个程序的配置文件
 *
 * @author bian
 * @createDate 2016.5.18
 */
var path = require("path");
const Config = {
    db:{
        host : "139.129.42.180",
        name : "postgres",
        user : "postgres",
        pwd : "oureda_postgres",
        port : "5432",
        dbname : "wechat",
        toString() {
            return `${this.name}://${this.user}:${this.pwd}@${this.host}:${this.port}/${this.dbname}`;
        }
    },

    redis:{
        host : "127.0.0.1",
        pwd : "",
        prefix : "wechat"
    },

    ftp : {
        host : "139.129.42.180",
        user : "ouredaFtp",
        password : "oureda4321"
    },

    log : {
        path : path.join(__dirname,"../"),
        name : "wechat.log",
        toString(){
            return path.join(this.path,this.name);
        }
    },

    Token : "OurEDA"    // 微信要求填写的Token
    
};

module.exports = Config;